import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import store from '@/core/store.js'
import socket from '@/core/socket';
import shareWx from './utils/shareWx';

Vue.config.productionTip = false
let wxHanderInformation = {};
if (uni.getSystemInfoSync().uniPlatform == 'mp-weixin') {
	wxHanderInformation = uni.getMenuButtonBoundingClientRect();
} else {
	// console.log('当前不是微信小程序环境！');
}
Vue.prototype.$wxHanderInformation = wxHanderInformation;
Vue.prototype.$socket = socket;
Vue.mixin(shareWx)
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif